import request from '@/api'

// 获取菜单
export const getMenu = () => {
  return request.get<IResponse>('/system/menu')
}

// 获取验证码
export const getCaptcha = (uuid: string) => {
  return request.get<any>('/system/captcha/' + uuid, '', 'blob')
}

// 用户登录
export const login = (params: NLogin.ILoginReqForm, uuid: string) => {
  // 返回的数据格式可以和服务端约定
  return request.post<NLogin.ILoginResData>('/system/login/' + uuid, params)
}
